package com.iwhalecloud.bss.kite.cucc.dataservice.mapper.batch;

import java.util.List;
import java.util.Map;

import com.iwhalecloud.bss.kite.cucc.client.dto.batch.KiteBatchAccept;

import com.ztesoft.bss.base.extmapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Interface : KiteBatchAcceptMapper
 * @Description :
 * @Author : xie.zhengjun
 * @Date : 2020/9/18 16:06
 */
public interface KiteBatchAcceptMapper extends BaseMapper<KiteBatchAccept> {
    List<Map<String, Object>> queryKiteBatchAccept(Map<String, Object> paramMap);

    /**
     * 查询待处理批次
     * @param importType
     * @return
     */
    List<Map<String, Object>> listTodoBatch(@Param("importType") String importType);


    /**
     * 查询批量受理批次
     * @param importType
     * @return
     */
    List<Map<String, Object>> listBatchAcceptBatchIds(@Param("importTypes") List<String> importTypes);


    /**
     * 更新状态
     * @param statusCd
     * @param batchId
     */
    void updateKiteBatchAcceptStatus(@Param("statusCd") String statusCd, @Param("statusDesc") String statusDesc, @Param("batchId") Long batchId);
}
